<%@ page language="java" autoFlush="true"%>
<%@ page import="org.unitime.timetable.webutil.WebClassListTableBuilder"%>
<%@ page import="org.unitime.timetable.form.ClassListForm"%>
<%@ page import="org.unitime.commons.User"%>
<%@ page import="org.unitime.commons.web.Web"%>
<%@ page import="org.unitime.timetable.solver.WebSolver"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/tld/struts-tiles.tld" prefix="tiles"%>
<%
	// Get Form 
	String frmName = "classListForm";
	ClassListForm frm = (ClassListForm) request.getAttribute(frmName);
%>
<html:form action="/classSearch">
	<%
//	String subjectAreaIds = (request.getParameter("subjectAreaIds")!=null)
//							? request.getParameter("subjectAreaIds")
//							: (String) request.getAttribute("subjectAreaIds");
//	session.setAttribute("subjArea", subjectAreaIds);
	User user = Web.getUser(session);
	session.setAttribute("callingPage", "classSearch");
%>
	<%new WebClassListTableBuilder().htmlTableForClasses(session, WebSolver.getClassAssignmentProxy(session),WebSolver.getExamSolver(session),frm, user, out, request.getParameter("backType"), request.getParameter("backId"));%>
</html:form>